import request from "../../service/request";

const login = (data={}) => {
  return request({
    method: "POST",
    url: "/system/login",
    data: data,
  })
}

const register = (data={}) => {
  return request({
    method: "POST",
    url: "/system/register",
    data: data
  })
}

const sendRegisterCode = (data={}) => {
  return request({
    method: "POST",
    url: "/system/sendRegisterCode",
    data: data
  })
}

const forget = (data={}) => {
  return request({
    method: "POST",
    url: "/system/forget",
    data: data
  })
}

const sendCheckCode = (data={}) => {
  return request({
    method: "POST",
    url: "/system/sendCheckCode",
    data: data
  })
}

export {
  login,
  register,
  sendRegisterCode,
  forget,
  sendCheckCode
}